API Documentation
Namespace.h
1 // Namespace.h
3 //
5 
6 namespace nkScripts
7 {
11  class DLL_SCRIPTS_EXPORT Namespace
12  {
13  public :
14 
20  Namespace (const char* name) ;
24  virtual ~Namespace () ;
25 
26  // Getters
30  const char* getName () const ;
35  virtual Namespace* getNamespace (const char* name) const = 0 ;
40  virtual UserType* getUserType (const char* name) const = 0 ;
41 
42  // Setters
50  virtual void setVar (const char* name, int value) = 0 ;
58  virtual void setObject (const char* name, const char* userTypeName, void* value) = 0 ;
65  virtual Namespace* setNamespace (const char* name) = 0 ;
72  virtual UserType* setUserType (const char* name) = 0 ;
79  virtual Function* setFunc (const char* name) = 0 ;
80 
85  virtual void shutdown () = 0 ;
89  virtual void reset () = 0 ;
90  } ;
91 }
nkScripts::Namespace::getName
const char * getName() const
nkScripts::Namespace::setFunc
virtual Function * setFunc(const char *name)=0
nkScripts
Encompasses all API of component NilkinsScripts.
Definition: Environment.h:7
nkScripts::Namespace::reset
virtual void reset()=0
nkScripts::Namespace
Holds information and allow control over a namespace in a scripting environment.
Definition: Namespace.h:12
nkScripts::Namespace::setObject
virtual void setObject(const char *name, const char *userTypeName, void *value)=0
nkScripts::Namespace::setUserType
virtual UserType * setUserType(const char *name)=0
nkScripts::Namespace::shutdown
virtual void shutdown()=0
nkScripts::Namespace::setVar
virtual void setVar(const char *name, int value)=0
nkScripts::UserType
Represents a user type and all the information and control related.
Definition: UserType.h:27
nkScripts::Namespace::setNamespace
virtual Namespace * setNamespace(const char *name)=0
nkScripts::Namespace::Namespace
Namespace(const char *name)
nkScripts::Namespace::getNamespace
virtual Namespace * getNamespace(const char *name) const =0
nkScripts::Namespace::getUserType
virtual UserType * getUserType(const char *name) const =0
nkScripts::Namespace::~Namespace
virtual ~Namespace()
nkScripts::Function
Holds information, and controls, over a function in a scripting environment.
Definition: Function.h:42